<!DOCTYPE html>
<html lang="en">
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<head>
    <meta charset="UTF-8">
    <title>excel</title>
</head>
<body>
<form action="/excel/getListFromXLSX" method="post" enctype="multipart/form-data">
    <input type="file" name="excel"/>
    <input type="submit" value="xlsx"/>
</form>

<form action="/excel/getListFromXLS" method="post" enctype="multipart/form-data">
    <input type="file" name="excel"/>
    <input type="submit" value="xls"/>
</form>

<form action="/excel/exportExcel" onsubmit="return init()" method="get">
    <input type="text" id="data" name="jsonArrayObject" value=""/>
    <input type="submit" id="download" value="下载excel"/>
</form>
<script>
    function init() {
        var data= '[{"name":"John","姓名":"约翰","年龄":"16"},{"name":"Mike","姓名":"麦克","年龄":"26"},{"name":"Mason","姓名":"梅森","年龄":"126"}]';
        // data=JSON.parse(data);
        $("#data").val(data)
        return true;
    }

</script>
</body>
</html>